﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Yule8xCommon.Applib;
using Yule8xModel;

namespace Yule8xWechat.PublicServices
{
    public partial class GameService : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int game_mact_id = RequestUtil.GetInteger("game_mact_id");
            if (game_mact_id < 1)
            {
                ResponseUtil.WriteEnd(string.Empty);
            }
            DataTable dtWMoneyValue = null;
            switch (game_mact_id)
            {
                case 1:
                    dtWMoneyValue = BozhongGameUtil.GetMoneyValueTable("ID", "Value", "Text");
                    break;
                case 2:
                    dtWMoneyValue = WanghuGameUtil.GetMoneyValueTable("ID", "Value", "Text");
                    break;
            }
            if (null == dtWMoneyValue)
            {
                ResponseUtil.WriteEnd(string.Empty);
            }else
            {
                dtWMoneyValue.TableName = "pricetable";
                ResponseUtil.AjaxWrite(JSON.ConvertToJson(dtWMoneyValue));
            }
        }
    }
}